package com.njtoyo.taxi.admin.mapper.master.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum CityLevel {
    district(0, "区"),
    county(1, "县级市"),
    city(2, "市"),
    municipality(3, "直辖市");

    @EnumValue
    private final int code;
    private final String desc;

    CityLevel(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
}
